﻿namespace SimpleX.RBAC
{
    public class SysUserSeedData : ISqlSugarEntitySeedData<SysUser>
    {
        [IgnoreSeedDataUpdate]
        public IEnumerable<SysUser> SeedData()
        {
            return new List<SysUser>()
            {
                new SysUser
                {
                    Id = "4541041164730368",
                    Avatar = "",
                    Account = "superAdmin",
                    Password = PwdUtils.DefaultPwd(),
                    OrgId="420487490388037",
                    Name = "超管",
                    SuperAdmin = "Y",
                    UserStatus = "Y",
                    LastLoginTime = DateTime.Now,
                    CreateDate = DateTime.Now,
                    CreateUserId = "Sys",
                    CreateUserName = "Sys"
                },
                 new SysUser
                {
                    Id = "4541041164730985",
                    Avatar = "",
                    Account = "devAdmin",
                    Password = PwdUtils.DefaultPwd(),
                    OrgId="420487490388037",
                    Name = "开发超管",
                    SuperAdmin = "Y",
                    UserStatus = "Y",
                    LastLoginTime = DateTime.Now,
                    CreateDate = DateTime.Now,
                    CreateUserId = "Sys",
                    CreateUserName = "Sys"
                },
                 new SysUser
                {
                    Id = "4541041164730256",
                    Account = "test",
                    Avatar = "",
                    Password = PwdUtils.DefaultPwd(),
                    OrgId="420487490388037",
                    Name = "test",
                    SuperAdmin = "N",
                    UserStatus = "Y",
                    LastLoginTime = DateTime.Now,
                    CreateDate = DateTime.Now,
                    CreateUserId = "Sys",
                    CreateUserName = "Sys"
                }
            };
        }
    }
}